#include<stdio.h>

int arraySign(int* nums, int numsSize)
{
    int flag = 1;
    for (int i = 0; i < numsSize; i++)
    {
        if (nums[i] == 0)
        {
            return 0;
        }
        if (nums[i] < 0)
        {
            flag = -flag;
        }
    }
    if (flag == -1)
    {
        return -1;
    }
    return 1;
}

int main()
{
    int num[] = { 10,6,64,32,74,73,54,754,7,43,-1,436,-5,-7,-1 ,-1};
    int len = sizeof(num) / sizeof(num[0]);
    int ret = arraySign(num, len);
    printf("%d \n", ret);
    return 0;
}